<?php
class MController extends AppController {
	
	public function beforeRender() {
	   	if ($this->RequestHandler->isMobile()) {
      		$this->layout = 'mobile';
    	}
		$this->layout = 'mobile';
  	}
	
	public function index() {
		
	}
	
	public function live() {
		if ($this->RequestHandler->isMobile()) {
      		$this->set('movil', true);
    	}
		
	}
	
	public function programacion() {
		
	}
}
?>
